unitDef = {
	unitname            = "v_town",
	name                = "Town",
	description         = "A Town. Peeps are born here.",
	buildpic            = "placeholder.png",
	buildcostenergy     = 500,
	buildcostmetal      = 500,
	buildtime           = 500,
	builder             = true,
	--builddistance       = 160,
	workertime          = 3,
	
	buildoptions        = {
		--villagers
		"slave",
		----[[ not really supposed to bulid these
		--warriors
		"berserker",
		"raider",
		"hunter",
		"shooter",
		--mages
		"wizard",
		--siege
		"catapult",
		--mythic
		"stonegolem",
		--]]
	},
	
	energymake          = 1,
	energystorage       = 100,
	metalmake           = 1,
	metalstorage        = 100,
	
	canmove             = true,
	canpatrol           = true,
	canstop             = true,
	category            = "land structure",
	commander           = true,
	corpse              = "dead",
	footprintx          = 6,
	footprintz          = 6,
	--[[
	BuildingGroundDecalDecaySpeed = 0.01,
	BuildingGroundDecalSizeX      = 9,
	BuildingGroundDecalSizeY      = 9,
	BuildingGroundDecalType       = "farmplot.tga",
	--UseBuildingGroundDecal        = true,
	--]]
	collisionVolumeOffsets   = "0 0 0",
	collisionVolumeScales    = "100 40 100",
	collisionVolumeTest      = 1,
	collisionVolumeType      = "box",
	
	icontype            = "default", 
	levelground         = 1,
	mass                = 500,
	maxdamage           = 500,
	maxslope            = 24,
	objectname          = "wall.s3o", --fixme v_farm.s3o
	script              = "town_anim.lua",
	sightdistance       = 800,
	tedclass            = "PLANT",
	yardmap             = "cccccc cccccc cccccc cccccc cccccc cccccc", -- open?
	--yardmap             = "oooooo oooooo oooooo oooooo oooooo oooooo", -- closed?
	--yardmap             = "yyyyyy yyyyyy yyyyyy yyyyyy yyyyyy yyyyyy", -- ???
	
	featureDefs         = {
	
		dead = {
		blocking        = 0,
		damage          = 100,
		description     = "Town Wreckage",
		object          = "boulder.s3o", --fixme
		},
	},
}

return lowerkeys({ v_town = unitDef })
